const Service = require('egg').Service;

class online extends Service {
    /*线上班列表*/
    async videoAlbum(pageNum,pageSize,categoryId,orderByField,recommendIs) {
        const sendData = {
            pageNum,
            pageSize,
            categoryId,
            orderByField,
            recommendIs,
        };
        return await this.ctx.service.base.getService('/device/onlineClass/list',sendData);
    }
    /*线上班列表推荐*/
    async videoAlbumSimple(pageNum,pageSize,categoryId,orderByField,recommendIs) {
        const sendData = {
            pageNum,
            pageSize,
            categoryId,
            orderByField,
            recommendIs,
        };
        return await this.ctx.service.base.getService('/device/onlineClass/listSimple',sendData);
    }
    
    /*线上班详情*/
    async onlineAlbumDetail(id) {
        return  await this.ctx.service.base.getService('/device/onlineClass/detail',{ id });
    }
    /*线上班目录大纲列表*/
    async onlineAlbumOutline(classId) {
        return await this.ctx.service.base.getService('/device/onlineRecInfo/list',{ classId });
    }
    /*线上班目录大纲列表(带回放信息)*/
    async onlineAlbumOutlineRec(classId) {
        return await this.ctx.service.base.getService('/device/onlineRecInfo/list',{ classId });
    }
}

module.exports = online;


